package com.mccrea.pattern.template;

/**
 * @Classname Client
 * @Description 模板方法模式测试
 * @Date 2021/5/17 0017 17:41
 * @Created by Mccrea_Gao
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("子类一开始===============");
        SupperCalssTemplate template1 = new ChClass1();
        template1.template();
        System.out.println("子类一结束===============");
        System.out.println("子类二开始===============");
        SupperCalssTemplate template2 = new ChClass2();
        template2.template();
        System.out.println("子类二结束===============");
    }
}
